<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/admin/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加试卷</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="../css/backCss.css">
	<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
		function selectType(url,title){
			window.open(url,title);
		}
	</script>
	
  </head>
  
  <body>
     <div class="top">
				<jsp:include page="top.jsp"></jsp:include>
			</div>

			<div class="content" align="center"> 
				<form action="addPaper.action" method="post" id="paperForm" name="paperForm">
					<table>
					<tr>
						<td>试卷名称</td>
						<td><input type="text" name="paper.name" style="width:250px"/></td>
					</tr>
					<tr>
						<td>试卷描述：</td>
						<td>
							<textarea rows="3" cols="60" title="在此输入描述信息,最多180字"></textarea>
						</td>
					</tr>
					<tr>
						<td>考试时长：</td>
						<td>
							<input type="text" name="paper.duration" title="按分钟计时" style="width:250px"/>
						</td>
					</tr>
					<tr>
						<td>开始时间：</td>
						<td> 
							<input type="text" id="d241" name="paper.startDateTime" title="该套试卷在某个时间之后才能开始参考" onfocus="WdatePicker({dateFmt:'yyyy年MM月dd日 HH时mm分'})" class="Wdate" style="width:250px"/>
						</td>
					</tr>
					<tr>
						<td>结束时间：</td>
						<td> 
							<input type="text" id="d241" name="paper.endDateTime" title="该套试卷在某个时间之前才能开始参考" onfocus="WdatePicker({dateFmt:'yyyy年MM月dd日 HH时mm分'})" class="Wdate" style="width:250px"/>
						</td>
					</tr>
					<tr>
						<td>内容分类：</td>
						<td>
							<input type="hidden" id="contentId" name="paper.paperContentType.id" /> 
							<input type="text" id="contentName"  name="paper.paperContentType.name" style="width:180px" />
							<input type="button" value=" 选 择  " style="background: #E6F5FF;" onclick="selectType('selectContentType.action','选择内容分类')">
						</td>
					</tr>
					<tr>
						<td>来源分类：</td>
						<td>
							<input type="hidden" id="sourceId" name="paper.paperSourceType.id" /> 
							<input type="text" id="sourceName" name="paper.paperSourceType.name" style="width:180px"/>
							<input type="button" value=" 选 择  " style="background: #E6F5FF;" onclick="selectType('selectSourceType.action','选择来源分类')"> 
						</td>
					</tr>
					<tr>
						<td colspan="2"  >
							<input type="submit" value=" 添 加 "
									style="background: #E6F5FF;"> 
							<input type="button"
							value=" 返 回 " style="background: #E6F5FF;"
							onclick="history.go(-1)"> 
						</td>
					</tr>
				</table>
				</form>
			</div> 
		<div class="foot" align="center">
				<jsp:include page="foot.jsp"></jsp:include>
			</div>  
  </body>
</html>
